package dao;


import org.springframework.stereotype.Service;
import vo.Model;

/**
 * @description:
 * @author: ZZZ
 * @time: 2021/6/8 21:12
 */
@Service
public class MyRepository {
    public void doSomething() {
        System.out.println("here's dosomething");
    }

    public Model findById(Long id) {
        return new Model(id, "Real Repository");
    }

    public Model findByIdd(Model id) {
        if (true) {
            try {
                throw new Exception("fdsfdsfdsfds");
            } catch (Exception e) {
                System.out.println("fdsf");
            }
        }
        return new Model(4L, "Real Repository");
    }
}
